<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Residency</title>
</head>
<body>

    <!--  Book keeping for residency.jsp -->
    <% 
    // gets all of the address information from previous page
    String address = request.getParameter("address"); 
    session.setAttribute("address", address);
    String city = request.getParameter("city"); 
    session.setAttribute("city", city);
    String zip = request.getParameter("zip"); 
    session.setAttribute("zip", zip);
    String telecode = request.getParameter("telecode"); 
    session.setAttribute("telecode", telecode);
    String area = request.getParameter("area"); 
    session.setAttribute("area", area);
    String number = request.getParameter("number"); 
    session.setAttribute("number", number);
    %>
    
    
    <!-- User Prompts for country of residence -->
    Welcome, <%= (session.getAttribute("first") + " " +
                  session.getAttribute("middle") + " " + 
                  session.getAttribute("last")) %>! <br>
    From <%= session.getAttribute("citizen") %> <br>
    Living in <%= session.getAttribute("residence") %> <br>
    Address: <%=( session.getAttribute("address") + " " + 
                  session.getAttribute("city") + " " +
                  session.getAttribute("zip")) %> <br>
    Telephone: <%= session.getAttribute("telecode") + " " +
                   session.getAttribute("area") + " " +
                   session.getAttribute("number") %> <br> <br>
    
    <!-- Prompts user to check if they are domestic/non -->
    Are you a US Resident?
    <form method="GET" action= "degree.jsp">
        <input type="radio" name="residency" value="domestic" checked> US Permanent Resident<br>
        <input type="radio" name="residency" value="notdomestic">Non-Resident<br>
        <input type=submit name="Submit"/>
    </form>
    

</body>
</html>